home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!datalytics!usenet
- From: Rob Stewart <stew@datalytics.com>
- Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
- Subject: Re: Young programmers read me.
- Date: Mon, 08 Apr 1996 14:06:31 -0400
- Organization: Datalytics, Inc
- Message-ID: <316955A7.63F9@datalytics.com>
- References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <pnoguchi-0404962135210001@pnoguchi.his.com> <aidan-0604961847480001@meathook.intac.com> <4k93rk$9lq@nw002.infi.net>
- NNTP-Posting-Host: 204.62.224.71
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- KlawS wrote:
- >
- > aidan@genghis.kublai.com (Aidan Cully) wrote:
- > >Here you point out one of my greatest objections to the language as though
- > >it were a feature... I agree that a programmer should be able to find his
- > >own bugs, but loose syntax is just pointless, and makes the bug-hunt just
- > >so much harder. I don't think that anyone should have the right to feel
- > >macho about being able to figure out how to program in one language while
- > >others can't unless the language has some spiffy new layer of abstraction
- > >or something that people can't deal with (e.g. OOP), but otherwise it
- > >seems like the language is badly designed. After gaining a mastery of
- > >C++, then learning other OOP languages, I have come to the conclusion that
- > >C++ is badly designed. For example, Function pointer will return an
- > >integer, takes two ints as parameters. In C/C++
- > > typedef (int*)(int a, int b) MyFuncType;
- > > MyFuncType MyFunc;
- > >in Oberon
- > > TYPE
- > > MyFuncType:FUNCTION( a, b:INTEGER ):INTEGER;
- > > VAR
- > > MyFunc:MyFuncType;
- > >Which do you think looks more readable?
- > To me, the former does. *shrug* I guess that's what happens when you
- > skip pascal in the "learning trend"... (It's already a rather
- > ambiguous command, in either language)
- >
-
- The former is also more readable to me, since there is less text
- to process to get the information. What I read from it though,
- is an error. Perhaps Aidan meant this:
-
- typedef int (*MyFuncType)(int a, int b);
-
- As I look at the Oberon version, I'm left wondering about the
- type of a. Why isn't it declared a:INTEGER? I suspect,
- however, it may be easier to write the Oberon version correctly
- the first time.
-
- --
- Robert Stewart | My opinions are usually my own.
- Datalytics, Inc. | stew@datalytics.com
-